//
//  QYXTopRankingView.m
//  OpenYourEyes
//
//  Created by dllo on 16/6/6.
//  Copyright © 2016年 Google AdWords. All rights reserved.
//

#import "QYXTopRankingView.h"

@implementation QYXTopRankingView



- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.staImageView = [[UIImageView alloc] init];
        self.staImageView.userInteractionEnabled = YES;
        [self addSubview:_staImageView];
        self.staNumberLabel = [[UILabel alloc] init];
        self.staNumberLabel.userInteractionEnabled = YES;
        self.staNumberLabel.font = [UIFont fontWithName:@"FZLTXIHJW--GB1-0" size:13];
        self.staNumberLabel.textAlignment = 1;
        self.staNumberLabel.textColor = [UIColor whiteColor];
        [self addSubview:_staNumberLabel];
        
        
    }
    return self;
}


- (void)layoutSubviews


{
    [super layoutSubviews];
    
    self.staImageView.frame = CGRectMake(20, 20, self.bounds.size.width / 4, self.bounds.size.width / 4);
    
    self.staNumberLabel.frame = CGRectMake(self.bounds.size.width / 3 + 15, 20, self.bounds.size.width / 3 * 2, self.bounds.size.width / 4);

}











@end
